#
#  TCP test Makefile
#

SHELL = /bin/sh


#----------------------------------------------------------- SETUP

TOPDIR = ../../../../../..
include $(TOPDIR)/Makefile.common

JAVAC = javac -O -classpath $(SSFNET_TEST_CLASSPATH)
JAVA  = java  -classpath ../..:$(SSFNET_TEST_CLASSPATH)
JAVARST  = java  -classpath .:../..:$(SSFNET_TEST_CLASSPATH)

all:    spoof

spoof:
	$(JAVAC) *.java
	$(JAVA)  SSF.Net.Net 1000 $(TOPDIR)/examples/net.dml spoof.dml > spoof.log 2>&1
	$(JAVA) SSF.OS.DumpPro server.tcpdump > server.tcpdump.txt 2>&1
	@echo ''
	@echo '--- SPOOF TEST: COMPLETED (see *.log, *.tcpdump.txt)---'
	@echo ''
	
clean:
	rm -f *.log
	rm -f *.tcpdump
	rm -f *.txt
	rm -f *.class
	rm -f *.out


